package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


/**
 * @desc BffBrotherDeptTargetObjCycleTargetValueDto
 * @使用场景
 */
@Data
public class BffBrotherDeptTargetObjCycleTargetValueDto implements Serializable {

    /**
     * 部门简称
     */
    @ApiModelProperty("部门简称")
    private String deptShortName;

    /**
     * 目标周期简称
     */
    @ApiModelProperty("目标周期简称")
    private String cyclelAlias;

    /**
     * 目标值
     */
    @ApiModelProperty("目标值")
    private Double targetValue;

    /**
     * 诊断值
     */
    @ApiModelProperty("诊断值")
    private Double targetDiagnosticValue;

    /**
     * 冗余单位
     */
    @ApiModelProperty("冗余单位")
    private String unit;
    /**
     * 冗余内容表主键ID
     */
    @ApiModelProperty("指标ID")
    private String entityId;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffBrotherDeptTargetObjCycleTargetValueDto that = (BffBrotherDeptTargetObjCycleTargetValueDto) o;
        return deptShortName == that.deptShortName && cyclelAlias == that.cyclelAlias && targetValue == that.targetValue && targetDiagnosticValue == that.targetDiagnosticValue && unit == that.unit && entityId == that.entityId;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), deptShortName, cyclelAlias, targetValue, targetDiagnosticValue, unit, entityId);
    }


}
   